package com.sciencep.pro.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 *
 * @author Sciencep
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class ProNodeDate extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 项目ID
     */
        @TableField("proId")
    private Long proId;

    /**
     * 项目节点ID
     */
        @TableField("proNodeId")
    private String proNodeId;

    /**
     * 开始日期
     */
        @TableField("startDate")
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date startDate;

    /**
     * 结束日期
     */
        @TableField("endDate")
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date endDate;


}
